#ifndef KDATABASE_H
#define KDATABASE_H

#include <QObject>
#include <QtSql>
#include <QtCore>

#include "kongm.h"

#define MAX_DATABASE_BACKUPS    5

class kDatabase : public QObject
{
    public:
        kDatabase();

        bool    checkDatabases();
        bool    downloadDatabase( QString name );
        bool    createInternalDatabase();

        bool    createBackup();

    private:
        bool    isOk;

        QSqlDatabase ikon;
        QSqlDatabase igames;
};

#endif // KDATABASE_H
